package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface EmployeeMapper {

    /**
     * 根据用户名查询员工
     * @param username
     * @return
     */
    Employee getByUsername(String username);

    /**
     * 新增员工
     * @param employee
     * @return
     */
    void insert (Employee employee);

    /**
     * 员工列表
     * @param employeePageQueryDTO
     * @return
     */
     Page<Employee> pageQuery (EmployeePageQueryDTO employeePageQueryDTO);

}
